<?php defined('SYSTEM_IN') or exit('Access Denied');?>
<?php include page('header_base');?>
<title>晋级条件</title>
<style>
    td{font-size:0.8rem;line-height:34px;}
</style>
<link href="<?php echo RESOURCE_ROOT;?>public/weui.min.css" rel="stylesheet">
<link href="<?php echo RESOURCE_ROOT;?>public/weui.plus.css?v=2" rel="stylesheet">
<script src="<?php  echo RESOURCE_ROOT;?>eshop/static/js/clipboard.min.js"></script>
<div class="weui-cells_form" style="  margin-bottom:50px;   border-bottom: 0px solid #FFF;   margin-top: 0;">
    <div class="page_topbar" >
        <a href="<?php echo create_url('mobile',array('act' => 'center','do' => 'member','m'=>'eshop'));?>" class="back"  style="color: #fff;text-align:center;"><i class="fa fa-angle-left"></i></a>
        <div class="title" style="color: #fff;text-align:center;">晋级条件</div>
    </div>
    <div class="page__hd header" style="padding: 0px;border-bottom:1px solid #e0e0e0;">
        <div class="weui-media-box weui-media-box_appmsg" style="padding-top: 10px;padding-left: 30px;"
             onclick="location.href='<?php echo create_url('mobile', array('act' => 'shopwap', 'do' => 'info')) ?>'">
            <div class="weui-media-box__hd">
                <div class="user-head">
                    <img width="60" height="60" style="border-radius:50%;" src="<?php echo $memberinfo['avatar']; ?>"
                         onerror="this.src='<?php echo RESOURCE_ROOT; ?>eshop/mobile/default/static/images/tx.png'">
                </div>
            </div>
            <div class="weui-media-box__bd">
                <h4 class="weui-media-box__title">
                    <?php echo $memberinfo['nickname'];?>
                </h4>
				<p class="weui-media-box__desc">
                    <span style="float:left;width:50%;display:inline;"> 等级:<?php echo $level['levelname'];?></span>
                </p>
            </div>
            <div class="weui-media-box__bd" style="text-align: right;">
                <h4 class="weui-media-box__title">
                    <span style="font-size:0.8rem;">团队人数:<?php echo $memberinfo['agentnum'];?>人</span>
                </h4>
                <p class="weui-media-box__desc">
                    <span style="font-size:0.8rem;">收益:<?php echo $agentprice?$agentprice:0;?>元</span>
                </p>
            </div>
        </div>
    </div>
    <div style="margin-top:-1px;">
        <table style="width:100%;text-align:center;" cellpadding="0" cellspacing="0">
            <tr style="color:#000;font-weight:bold;">
                <td style="border-bottom:1px solid #e0e0e0;" width="5%"></td>
                <td style="border-bottom:1px solid #e0e0e0;" width="15%">级别</td>
                <td style="border-bottom:1px solid #e0e0e0;" width="20%">任务/人数</td>
                <td style="border-bottom:1px solid #e0e0e0;" width="20%">完成人数</td>
                <td style="border-bottom:1px solid #e0e0e0;" width="20%">收益</td>
                <td style="border-bottom:1px solid #e0e0e0;" width="20%">状态</td>
            </tr>
            <?php $number = 1;foreach((array)$agent as $k=>$v){?>
                <tr class="row">
                    <td><?php echo $number;?></td>
                    <td>等级<?php echo $number;?></td>
                    <td><?php echo $v[0].'/'.$k;?></td>
                    <td><?php echo $v[2]['number']?></td>
                    <td><?php echo $v[1];?></td>
                    <td><?php echo $v[2]['status'];?></td>
                </tr>
            <?php $number++;}?>
        </table>
    </div>
</div>
<?php  $show_footer=true;?>
<?php include page('footer_menu');?>
<?php include page('footer_base');?>